package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 课程节内容对象 course_lesson
 * 
 * @author ruoyi
 * @date 2025-05-20
 */
public class CourseLesson extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 课程id */
    @Excel(name = "课程id")
    private Long courseId;

    /** 章节id */
    @Excel(name = "章节id")
    private Long sectionId;

    /** 课时主题 */
    @Excel(name = "课时主题")
    private String theme;

    /** 课时时长(分钟) */
    @Excel(name = "课时时长(分钟)")
    private Long duration;

    /** 是否免费 */
    @Excel(name = "是否免费")
    private Integer isFree;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer isDel;

    /** 排序字段 */
    @Excel(name = "排序字段")
    private Long orderNum;

    /** 课时状态,0-隐藏，1-未发布，2-已发布 */
    @Excel(name = "课时状态,0-隐藏，1-未发布，2-已发布")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setCourseId(Long courseId) 
    {
        this.courseId = courseId;
    }

    public Long getCourseId() 
    {
        return courseId;
    }

    public void setSectionId(Long sectionId) 
    {
        this.sectionId = sectionId;
    }

    public Long getSectionId() 
    {
        return sectionId;
    }

    public void setTheme(String theme) 
    {
        this.theme = theme;
    }

    public String getTheme() 
    {
        return theme;
    }

    public void setDuration(Long duration) 
    {
        this.duration = duration;
    }

    public Long getDuration() 
    {
        return duration;
    }

    public void setIsFree(Integer isFree) 
    {
        this.isFree = isFree;
    }

    public Integer getIsFree() 
    {
        return isFree;
    }

    public void setIsDel(Integer isDel) 
    {
        this.isDel = isDel;
    }

    public Integer getIsDel() 
    {
        return isDel;
    }

    public void setOrderNum(Long orderNum) 
    {
        this.orderNum = orderNum;
    }

    public Long getOrderNum() 
    {
        return orderNum;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("courseId", getCourseId())
            .append("sectionId", getSectionId())
            .append("theme", getTheme())
            .append("duration", getDuration())
            .append("isFree", getIsFree())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("isDel", getIsDel())
            .append("orderNum", getOrderNum())
            .append("status", getStatus())
            .toString();
    }
}
